﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace MBSPL.UserControls.CinemaUserControl
{
    
    public partial class ViewCinemaControl : System.Web.UI.UserControl
    {
        #region transfer
        MBSBLC.BLC cinemablc = new MBSBLC.BLC();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                CinemaList1.LoadDropDownBox();

            }

            CinemaList1.CimeListChanged += new CinemaList.CinemaListHandler(CinemaList1_CimeListChanged);   
        }

        void CinemaList1_CimeListChanged(int SelectedValue)
        {
           Label6.Text= cinemablc.CinemaID(SelectedValue);
           Label7.Text = cinemablc.CinemaName(SelectedValue);
           Label8.Text = cinemablc.CinemaLocation(SelectedValue);
           Label9.Text = cinemablc.NumOfScreens(SelectedValue);
           Label10.Text = cinemablc.CinemaIsDeleted(SelectedValue);
        }


    #endregion
    }
}